package com.zb.mobile;

import com.zb.utils.VerificUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @Author WEN
 * @Date 2023/11/20 0020
 **/
@Data
@ApiModel("服务商注册账号对象")
public class NetworkRegisterAccountVo {
    @Pattern(regexp = VerificUtil.REGEX_PHONE, message = "手机号格式错误")
    @ApiModelProperty(value = "手机号", required = true)
    private String phone;

    @NotBlank(message = "姓名不能为空")
    @Length(max = 100, message = "姓名长度限制 100 个字符")
    @ApiModelProperty(value = "姓名", required = true)
    private String name;

    @ApiModelProperty(value = "邀请码")
    private String inviteCode;

    @NotBlank(message = "验证码不能为空")
    @Pattern(regexp = "\\d*", message = "验证码为六位数的数字")
    @ApiModelProperty(value = "验证码", required = true)
    private String code;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码", required = true)
    private String password;
}
